package com.dehui.traders.ui.setting;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import com.dehui.traders.R;
import com.dehui.traders.databinding.ActivitySettingBinding;
import com.dehui.traders.ui.base.AppActvity;
import com.dehui.traders.BR;

public class SettingActivity extends AppActvity<ActivitySettingBinding,SettingViewModel> {

    @Override
    public int initContentView() {
        return R.layout.activity_setting;
    }

    @Override
    public int initVariableId() {
        return BR.viewModel;
    }

    @Override
    public SettingViewModel initViewModel() {
        return new SettingViewModel(this);
    }

    public static void start(Context context){
        Intent intent = new Intent(context,SettingActivity.class);
        context.startActivity(intent);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        initToolbarValue(R.string.main_tab_system,R.string.setting);
    }
}
